package com.easytake.emotioncat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author baomidou
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("em_user_info")
@Schema(title = "用户")
public class EmUserInfoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应wx的userId
     */
    @Schema(title = "对应wx的userId")
    @TableField("user_id")
    private String userId;

    /**
     * 电话号码
     */
    @Schema(title = "电话号码")
    @TableField("phone")
    private String phone = "";

    /**
     * 昵称
     */
    @Schema(title = "昵称")
    @TableField("nick_name")
    private String nickName = "";

    /**
     * 学校
     */
    @Schema(title = "学校")
    @TableField("school")
    private String school = "";

    /**
     * 城市
     */
    @Schema(title = "城市")
    @TableField("city")
    private String city = "";

    /**
     * 签名
     */
    @Schema(title = "签名")
    @TableField("signature")
    private String signature = "";

    /**
     * 性别 0-否,1-是
     */
    @Schema(title = "性别 0-否,1-是")
    @TableField("sex")
    private Integer sex = 0;

    /**
     * 是否删除 0-否,1-是
     */
    @Schema(title = "否删除 0-否,1-是")
    @TableField("deleted")
    private Integer deleted = 0;

    /**
     * 生日
     */
    @Schema(title = " 生日")
    @TableField("birth")
    private LocalDate birth = LocalDate.now();

    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(title = "更新时间")
    @TableField("modify_time")
    private LocalDateTime modifyTime;

    /**
     * 用户头像url
     */
    @Schema(title = "用户头像")
    @TableField("image")
    private String image = "";
}
